package business.report.impl;

import business.report.AgencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.Agency;
import report.domain.AgencyCriteria;
import report.mapper.AgencyMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "agencyperService")
public class AgencyServiceimpl implements AgencyService {
    @Autowired
    AgencyMapper agencyMapper;
    @Override
    public List<Agency> getAgency() {
        AgencyCriteria criteria = new AgencyCriteria();
        criteria.createCriteria().getAllCriteria();
        return agencyMapper.selectByExample(criteria);
    }
}
